package org.jgs1904.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.jgs1904.bean.Pager;
import org.jgs1904.entity.Post;

/**
 * 帖子数据操作接口
 * 
 * @author junki
 * @date 2020年3月26日
 */
public interface PostDao {

	List<Post> selectList() throws SQLException;

	Post insert(Post post) throws SQLException;

	Post selectOneById(Long id) throws SQLException;

	Pager<Post> selectPage(Long currentPage, Long pageSize, Long pageNumShowLength, Map<String, String[]> paramMap) throws SQLException;
	
	Long count(Map<String, String[]> paramMap) throws SQLException;

}
